package com.stylefeng.guns.modular.customer.warpper;

import com.stylefeng.guns.core.base.warpper.BaseControllerWarpper;
import com.stylefeng.guns.core.common.constant.factory.ConstantFactory;
import com.stylefeng.guns.modular.customer.util.CustomerUtil;
import org.apache.commons.collections.MapUtils;

import java.util.Map;

public class CustomerCompanyWrapper extends BaseControllerWarpper {
    public CustomerCompanyWrapper(Object o ){
        super(o);
    }
    protected  void warpTheMap(Map<String, Object> map){
        String areaName = ConstantFactory.me().getAreaName((MapUtils.getInteger(map, "areaId")));
        map.put("areaName",areaName);
        CustomerUtil.putAuthority(map,MapUtils.getInteger(map,"id"));
    }
}
